/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package hu.bme.j2ee.v37zen.web.ws;

import hu.bme.j2ee.v37zen.beans.ExporterBean;
import javax.ejb.EJB;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;

/**
 *
 * @author Kiss Dániel
 */
@WebService(serviceName = "ExportWebService")
public class ExportWebService {
    @EJB
    private ExporterBean ejbRef;// Add business logic below. (Right-click in editor and choose
    // "Insert Code > Add Web Service Operation")

    @WebMethod(operationName = "export")
    public String export(@WebParam(name = "username") String username, @WebParam(name = "password") String password) {
        return ejbRef.export(username, password);
    }
    
}
